import request from '@/utils/request'


export function allotList(data) { //设备设施调拨-列表
    return request({
        url: '/project-management/api/assetsAllocation/page',
        method: 'post',
        data
    })
}
export function allotApprovalList(data) { //设备设施调拨-审批
    return request({
        url: '/project-management/api/assets/audit/db/page',
        method: 'post',
        data
    })
}
export function allotAdd(data) { //设备设施调拨-添加
    return request({
        url: '/project-management/api/assetsAllocation/add',
        method: 'POST',
        data
    })
}
//原 put
export function allotEdit(data) { //设备设施调拨-修改
    return request({
        url: '/project-management/api/assetsAllocation/edit',
        method: 'post',
        data
    })
}
export function allotDetail(id) { //设备设施调拨-单条查询
    return request({
        url: '/project-management/api/assetsAllocation/'+id,
        method: 'get',
    })
}
//原 del
export function allotDelete(id) { //设备设施调拨-单条查询删除
    return request({
        url: '/project-management/api/assetsAllocation/del/'+id,
        method: 'get',
    })
}

export function  allotExport(id) { //设备设施调拨-导出
    return request({
        url: '/project-management/api/assetsAllocation/account/export/'+id,
        responseType: 'arraybuffer',
        method: 'get',
    })
  }



